<template>
  <div class="post_list">
    <div v-for="post in posts" :key="post.id">
      <singlePost :post="post" />
    </div>
  </div>
</template>

<script setup>
import singlePost from "../components/Singlepost.vue";
// 接受props
defineProps({
  posts: Array,
});
</script>

<style></style>
